import { Component,inject, signal } from '@angular/core';
import {AuthService} from './auth.service';
import { FormsModule } from '@angular/forms';

@Component({
  selector: 'app-auth',
  imports: [FormsModule],
  templateUrl: './auth.html',
  styleUrl: './auth.css'
})
export class Auth {
  email = signal('');
  password = signal('');
  private authService = inject(AuthService);

  onSubmit(){
    this.authService.authenticate(this.email(),this.password());
  }
}
